﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GFluentCode.CodeMaker
{
    public static class TabControlExtension
    {
        public static void Write(this TabControl tc, string tableName, string text)
        {
            var tp = tc.TabPages.Cast<TabPage>().First(x => x.Text.Equals(tableName));
            if (tp == null) return;
            tp.Controls[0].Text = text;
        }
    }
}
